package newapp.dob.com.dc_new_app.api;


import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * Created by xsooy-pc on 2017/3/30.
 */

public class TokenInterceptor implements Interceptor {

    @Override
    public Response intercept(Chain chain) throws IOException {
        Request.Builder builder = chain.request().newBuilder();
        builder.header("Content-Type", "application/json")
                .header("accept", "*/*")
                .header("connection", "Keep-Alive");
//                .header("RABITOKEN", RBInfo.getInstance().getToken());
        return chain.proceed(builder.build());
    }

}
